package com.gshrms.org.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gshrms.org.domain.OrgPostRank;
import org.apache.ibatis.annotations.Mapper;

/**
 * 职级Mapper接口
 * 
 * @author ruoyi
 * @date 2024-10-29
 */
@Mapper
public interface OrgPostRankMapper extends BaseMapper<OrgPostRank>
{
    /**
     * 查询职级
     * 
     * @param postRankId 职级主键
     * @return 职级
     */
    public OrgPostRank selectOrgPostRankByPostRankId(Long postRankId);

    /**
     * 查询职级列表
     * 
     * @param orgPostRank 职级
     * @return 职级集合
     */
    public List<OrgPostRank> selectOrgPostRankList(OrgPostRank orgPostRank);

    /**
     * 新增职级
     * 
     * @param orgPostRank 职级
     * @return 结果
     */
    public int insertOrgPostRank(OrgPostRank orgPostRank);

    /**
     * 修改职级
     * 
     * @param orgPostRank 职级
     * @return 结果
     */
    public int updateOrgPostRank(OrgPostRank orgPostRank);

    /**
     * 删除职级
     * 
     * @param postRankId 职级主键
     * @return 结果
     */
    public int deleteOrgPostRankByPostRankId(Long postRankId);

    /**
     * 批量删除职级
     * 
     * @param postRankIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrgPostRankByPostRankIds(Long[] postRankIds);
}
